package com.yan.furns.dao;

import com.yan.furns.entity.Furn;

import java.util.List;

/**
 * @author Yzb
 * @version 1.0
 */

public interface FurnDAO {
	/**
	 * 返回所有的家居信息的集合
	 * @return List of furns
	 */
	List<Furn> queryFurns();
	int insertFurn(Furn furn);
	int deleteFurn(int id);
	int updateFurn(Furn furn);
	Furn queryFurnById(int id);
	List<Furn> pageQueryFurn(int begin, int pageSize);
	Integer queryTotalFurns();

	List<Furn> pageQueryFurnByName(String name, int begin, int pageSize);
	Integer queryTotalFurnsByName(String name);
}
